package com.aspose.cells;

class zcce extends zcdb {
   zcce() {
      this.d = 43;
   }

   void a(Font var1, Workbook var2) throws Exception {
      int var3 = 25 + var1.getName().length() * 2;
      this.c = new byte[var3];
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.i()), 0, this.c, 0, 2);
      int var4 = 0;
      if (var1.isItalic()) {
         var4 |= 2;
      }

      if (var1.isStrikeout()) {
         var4 |= 8;
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var4), 0, this.c, 2, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.g()), 0, this.c, 4, 2);
      this.c[6] = var1.e();
      this.c[8] = (byte)zcee.d(var1.getUnderline());
      this.c[9] = var1.h();
      this.c[10] = (byte)var1.getCharset();
      zcdb.a(this.c, 12, var1.b, 64, var2);
      this.c[20] = zcee.b(var1.a());
      byte var5 = 21;
      zcch.a(this.c, var5, var1.getName());
   }
}
